<?php
class transaccion extends Controller
{

	function data() {
		
		$totalPages = ceil(1);
		if ($page > $totalPages) $page = $totalPages;
		$totalRecords=1;
		$json_output = array(
		'page'		=> $page,
		'total'		=> $totalPages,
		'records'	=> $totalRecords,
		'rows'		=> array()
		);

$json_output['rows'][] = array('id_compania' => 1, 'NombreCompania' =>'Prueba', 'TipoCompania' => 
'express', 'jurisdiccion' =>'local', 'RegistroCompania' =>'02/12/2009 12:20:00','CreadoCompania' 
=> 'admin');
			
		

		echo json_encode($json_output);
	}
}
?>